package com.example.parkingsharing.ui.components.management

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.shadow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp

@Composable
fun OrderManagement() {
    Column() {
        LazyColumn(
            state = rememberLazyListState()
        ){
            items(30) { item ->
                Text(
                    text = "$item",
                    modifier = Modifier
                        .shadow(0.dp, RoundedCornerShape(3.dp))
                        .fillMaxWidth()
                        .wrapContentHeight()
                )
            }
        }
        Text(
            text = "已加载全部订单",
            fontSize = 10.sp,
            color = MaterialTheme.colors.onSurface.copy(0.6f)
        )
    }
}